<?php
$config = array();
$system = dirname(__FILE__);
// -----------------------------------
include "$system/zen/Config/config.php";
$config['Zen']['system'] = $system;
//hooks
//$config['Zen']['start'] = array(array('App', 'preAction'));


// Front
$config['Zen_Front']['module_default'] = 'default';
$config['Zen_Front']['action_default'] = 'home';
$config['Zen_Front']['layout_default'] = 'zen';

//如不想用布局，请设置为false
//$config['Zen_Front']['layout_orm_index'] = false;

//如果不使用模板引擎的话，设为NULL
$config['Zen_Tpl'] = array('adapter' => 'Zen_Tpl_Smarty');

$config['Zen_Tpl_Smarty']['allow_php_tag'] = true;
$config['Zen_Tpl_Smarty']['allow_php_templates'] = true;
$config['Zen_Tpl_Smarty']['compile_dir'] = $system.'/tmp/templates_c/';
$config['Zen_Tpl_Smarty']['config_dir'] = $system.'/tmp/configs/';
$config['Zen_Tpl_Smarty']['cache_dir'] = $system.'/tmp/cache/';

//default orm
$config['Zen_Orm']['adapter'] = 'Zen_Orm_Propel';

//database config
$config['Zen_Db']['type'] = 'mysql';
$config['Zen_Db']['name'] = 'test';
$config['Zen_Db']['user'] = 'root';
$config['Zen_Db']['passwd'] = '';


$config['App_Base'] = array('foo' => 'bar', 'hello' => 'world');


// --------------------------------
return $config;